{// 加载头部公共文件 }
<include file="Public:header" />
<?php
require_once("Flexpaper/php/lib/config.php");
require_once("Flexpaper/php/lib/common.php");
$configManager = new Config();
if($configManager->getConfig('admin.password')==null){
$url = 'setup.php';
header("Location: $url");
exit;
}
?>
<link rel="stylesheet" type="text/css" href="/Flexpaper/css/flexpaper.css" />
<script type="text/javascript" src="/Flexpaper/js/jquery.min.js"></script>
<script type="text/javascript" src="/Flexpaper/js/flexpaper.js"></script>
<script type="text/javascript" src="/Flexpaper/js/flexpaper_handlers.js"></script>
<!--主体内容1-->
<div class="grid_16" style="margin-top:20px; margin-bottom:20px">
    <div class="" id="container">
        <div class="mode-a">
            <!-- mode-a-sid -->
            <div class="mode-a-sid">
                <dl id="LastestUpdate" class="box">
                    <dt style="background: url('/App/Modules/Home/Tpl/Public/images/bg-tit-long.png') no-repeat scroll 0 0 transparent;"><span>文章资讯</span></dt>
                    <dd>
                        <ul class="txtList">
                            <volist name="latest" id="latest">
                                <li><img src="../Public/images/ontop8.gif"><a href="__URL__/read/id/{$latest.id}" title="{$latest.title}">{$latest.title|msubstr=0,15}</a></li>
                            </volist>
                        </ul>
                    </dd>
                </dl>
                <a href="__URL__/archive"><img src="../Public/images/dl.jpg" width="222px" /></a>
                <a href="__URL__/message"><img src="../Public/images/mes.jpg" width="222px" /></a>
                <a href="__URL__/signin"><img src="../Public/images/members.jpg" width="222px" /></a>
                <!-- end side -->
            </div>
            <!-- mode-a-main -->
            <div class="mode-a-main">

                <div class="articleList">
                    <h2><span>档案预览</span></h2>
                    <div class="articleList_content">
                        <ul class="txtList">

                            <div id="documentViewer" class="flexpaper_viewer" style="width:770px;height:500px"></div>

                            <script type="text/javascript">
                                function getDocumentUrl(document){
                                    return "/Flexpaper/php/services/view.php?doc={doc}&format={format}&page={page}".replace("{doc}",document);
                                }

                                function getDocQueryServiceUrl(document){
                                    return "/Flexpaper/php/services/swfsize.php?doc={doc}&page={page}".replace("{doc}",document);
                                }
                                //                                    var startDocument = "<?php if(isset($_GET['doc'])){echo $_GET['doc'];}else{?>Paper.pdf<?php } ?>";
                                var startDocument = "<?php echo $file; ?>";
                                $('#documentViewer').FlexPaperViewer(
                                { config : {
                                        DOC : escape(getDocumentUrl(startDocument)),
                                        Scale : 0.6,
                                        ZoomTransition : 'easeOut',
                                        ZoomTime : 0.5,
                                        ZoomInterval : 0.2,
                                        FitPageOnLoad : false,
                                        FitWidthOnLoad : true,
                                        FullScreenAsMaxWindow : false,
                                        ProgressiveLoading : false,
                                        MinZoomSize : 0.2,
                                        MaxZoomSize : 5,
                                        SearchMatchAll : false,
                                        InitViewMode : 'Portrait',
                                        RenderingOrder : "<?php echo ($configManager->getConfig('renderingorder.primary') . ',' . $configManager->getConfig('renderingorder.secondary')) ?>",
                                        ViewModeToolsVisible : true,
                                        ZoomToolsVisible : true,
                                        NavToolsVisible : true,
                                        CursorToolsVisible : true,
                                        SearchToolsVisible : true,
                                        DocSizeQueryService : '/Flexpaper/services/swfsize.php?doc=' + startDocument,
                                        jsDirectory : '/Flexpaper/js/',
                                        localeDirectory : '../locale/',
                                        JSONDataType : 'jsonp',
                                        //                                            key : '<?php echo $configManager->getConfig('licensekey') ?>',
                                        localeChain: 'zh_CN'

                                    }}
                            );
                            </script>

                        </ul>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="clear"></div>
<!--主体内容1-->
{// 加载底部公共文件 }
<include file="Public:footer" />